package com.example.huangyuchen.advance.training.camp.composition;

import lombok.AccessLevel;
import lombok.ToString;
import lombok.experimental.FieldDefaults;

import java.nio.charset.StandardCharsets;

/**
 * @author YuChen Huang
 * @date 2022/3/5 18:58
 */
@ToString(callSuper = true)
@FieldDefaults(level = AccessLevel.MODULE)
public class Composition extends NeedCompositionClass {

    Integer qty2;

    public void modifyQty() {

        final CompositionClassQtyModifier2.NormalModifier normalModifier = CompositionClassQtyModifier2.getNormalModifier("", "");
        final CompositionClassQtyModifier2.OtherModifier otherModifier = CompositionClassQtyModifier2.getOtherModifier("", "");

        normalModifier.modifyQtyForSon(this);

        otherModifier.modifyQtyForSon(this);
    }

    public static void main(String[] args) {
        final Composition composition = new Composition();

        composition.modifyQty();
    }
}
